function isPhone(width) {     //判断是否是移动端
    const ua = navigator.userAgent.toLowerCase()
    return /mobile|tablet|android|iphone|ipod|ipad|silk-accelerated|windows phone/i.test(ua) || window.innerWidth < width
}

export default {
    isPhone
}